<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common_include_for_server.jsp"%>
<script type="text/javascript">
<!--
function updateOrder(){
	$.post('manage/imgslider!updateOrder.action',
			$('#sliderOrderForm').serialize(),
			function(){
				reloadImageSliderList();
			});
}
	var articleData = {};
	var reportData = {};
//-->
</script>
<form id="sliderOrderForm" action="#">
<table border="1">
	<s:iterator value="imageSliderList" status="sts">
		<s:if test="report.reportId != null">
			<tr>
				<td><script>reportData['${report.reportId }'] = {};</script>
					<input type="text" name="imageSliderList[${sts.index }].orderId" size="2" value="${orderId }"/>
					<input type="hidden"" name="imageSliderList[${sts.index }].imageSliderId" size="2" value="${imageSliderId }"/>
				</td>
				<td>
					<img alt="${report.title }" src="${report.imgName }" height="70px;"/>
				</td>
				<td>
					<div>标题：<a href="report.action?report.reportId=${report.reportId }" target="_blank">${report.title }</a></div>
					<div>类型：<b>报告</b></div>
					<div>操作：<a href="javascript:void(0);" onclick="selectReport(${report.reportId}, this.checked);">取消</a></div>
				</td>
			</tr>
		</s:if>
		<s:if test="article.articleId != null">
			<tr>
				<td><script>articleData['${article.articleId }'] = {}; </script>
					<input type="text" name="orderId" size="2"/>
				</td>
				<td>
					<img alt="${article.title }" src="${article.imgName }" height="70px;"/>
				</td>
				<td>
					<div>标题：<a href="article.action?article.articleId=${article.articleId }" target="_blank">${article.title }</a></div>
					<div>类型：<b>咨讯</b></div>
					<div>操作：<a href="javascript:void(0);" onclick="selectArticle(${article.articleId}, this.checked);">取消</a></div>
				</td>
			</tr>
		</s:if>
	</s:iterator>
	<tr>
		<td colspan="4"> <input type="button" value="更新顺序号" onclick="updateOrder()"/> </td>
	</tr>
</table>
</form>